package server.core;

/**
 * describe:没有放入钱状态
 *
 * @author helloworldyu
 * @data 2018/3/23
 */
public class NoQuarterState extends AbstractState {
	public NoQuarterState( GumballMachine machine ){
		super(machine);
	}

	@Override
	public void insertQuarter() {
		System.out.println("你投入了硬币.");
		//切换状态
		this.gumballMachine.setState(gumballMachine.getHasQuarterState());
	}

	@Override
	public void ejectQuarter() {
		System.out.println("没有投入硬币!!!!!!!");
	}

	@Override
	public void turnCrank() {
		System.out.println("请先投入硬币!!!!!!!!!");
	}

	@Override
	public void dispense() {
		System.out.println("请投入硬币，然后转动手柄!!!!!!!!");
	}
}